<template>
  <div class="container">
    <div class="top">
      <div class="pop-line"></div>
    </div>

    <slot style="flex: 1"></slot>

    <div v-if="props.bottom" class="bottom">
      <div class="pop-line"></div>
    </div>
  </div>
</template>
<script setup lang="ts">
const props = defineProps({
  bottom: {
    type: Boolean,
    required: false,
    default: false,
  },
})
</script>
<style lang="less" scoped>
.container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px;
  background: linear-gradient(90deg, rgba(3, 40, 53, 0.1), rgba(10, 25, 50, 0.9));
}

.pop-line {
  position: relative;
  height: 1px;
  background: rgba(0, 255, 222, 0.3);
  box-shadow: 0px 0px 3px 1px rgba(0, 194, 252, 0.3);
}

.pop-line:before {
  content: '';
  width: 10px;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: 0px;
  background: rgba(0, 255, 222, 0.7);
  border-radius: 0.5px;
}

.pop-line:after {
  content: '';
  width: 10px;
  height: 2px;
  position: absolute;
  right: 0;
  bottom: 0px;
  background: rgba(0, 255, 222, 0.7);
  border-radius: 0.5px;
}

.top {
  height: 2px;
  width: 100%;
}
.center {
  flex: 1;
}
.bottom {
  height: 2px;
  width: 100%;
}
</style>
